package org.zp.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.zp.mapper.AdminLogInfoMapper;
import org.zp.pojo.AdminLogInfo;

import com.github.pagehelper.PageHelper;

@Service
@Transactional(rollbackFor = Exception.class)//出现异常就回滚事务
public class AdminLogInfoServiceimpl implements AdminLogInfoService{
@Resource
private AdminLogInfoMapper a;


@Override
public Integer addlog(Long aid, Integer cid, String url) {
	// TODO Auto-generated method stub
	return a.addlog(aid, cid,url);
}


@Override
public List<AdminLogInfo> selectlog(Integer startpage, Integer limitpage, Long aid, String start, String end) {
	PageHelper.startPage(startpage, limitpage);
	return a.selectlog(aid,start,end);
}


@Override
public Integer LogDel(int lid) {
	// TODO Auto-generated method stub
	return a.LogDel(lid);
}
}
